package com.xiaoshuidi.cloud.module.member.service.securitycheckprogram;

import java.util.*;
import javax.validation.*;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoshuidi.cloud.module.member.controller.admin.securitycheckprogram.vo.SecurityCheckProgramGriddersCreateReqVO;
import com.xiaoshuidi.cloud.module.member.pojo.securitycheckprogram.SecurityCheckProgramGridders;

/**
 * 安全检查项目和网格员关联 Service 接口
 *
 * @author hans.zhang
 */
public interface SecurityCheckProgramGriddersService extends IService<SecurityCheckProgramGridders> {

    /**
     * 创建安全检查项目和网格员关联
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Boolean createSecurityCheckProgramGridders(@Valid SecurityCheckProgramGriddersCreateReqVO createReqVO);



    /**
     * 获得安全检查项目和网格员关联列表
     *
     * @param securityCheckProgramId 项目ID
     * @return 安全检查项目和网格员关联列表
     */
    List<SecurityCheckProgramGridders> getSecurityCheckProgramGriddersList(Long securityCheckProgramId);


    /**
     * 更新安全检查项目和网格员关联
     *
     * @param reqVO 创建信息
     */
    Boolean upodateSecurityCheckProgramGridders(SecurityCheckProgramGriddersCreateReqVO reqVO);

    /**
     * 根据项目ID删除网格员记录
     * @param securityCheckProgramId 项目ID
     * @return
     */
    Boolean deleteByCheckProgramId(Long securityCheckProgramId);
}
